<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=0.3, user-scalable=yes" /><!-- initial-scale=1.0, maximum-scale=2.0, minimum-scale=1.0, user-scalable=yes -->
	<meta name="format-detection" content="telephone=no">
	<meta name="Keywords" content="(주)상산 오수처리시설 중앙관리 시스템" />
	<meta name="decription" content="(주)상산 오수처리시설 중앙관리 시스템 입니다." />
	<title>(주)상산</title>
	<script type="text/javascript" src="<c:url value='/htmlRes/js/jquery-1.10.2.js'/>"></script>
	<link rel="stylesheet" type="text/css" href="<c:url value='/htmlRes/css/popup_style.css'/>" />
	<!--[if lt IE 9]>
		<script type="text/javascript" src="/js/respond.min.js"></script>
	<![endif]-->
	<script type="text/javaScript">
	<!--
		/* pagination 페이지 링크 function */
		function searchForm(){
			$('#viewForm').attr('action', '<c:url value="/repairSystem/searchCurrentSystem.do"/>');
			$('#viewForm').submit();
		}
	
		$(document).ready(function(){
			var cSysList = $('#currentSystemList');
			if(cSysList.size() > 0){
				$(cSysList).each(function(index){
					$('#selectCsysName'+index).click(function(e){
						e.preventDefault();
						$("#srs_sys_name", opener.document).val($('#sysName'+index).html());
						self.close();
					});
				});	
			}
		});
	-->
	</script>
</head>
<body>
<!-- contents s -->
<div class="search_container" id="container">
	<span class="round lt">&nbsp;</span>
    <span class="round rt">&nbsp;</span>
    <span class="round lb">&nbsp;</span>
    <span class="round rb">&nbsp;</span>
    <div class="container_area">
    	<form name="viewForm" id="viewForm" action="<c:url value="/repairSystem/searchCurrentSystem.do"/>" method="post">
			<input type="hidden" name="areaKey" id="areaKey" value="${paramMap.areaKey }"/>
        	<h2 class="tit_h2">시설 품명 조회</h2>
        	<div class="srch_wrap">
				<fieldset>
					<legend>시설 품명 조회</legend>
					<label for="sysName">품명 : </label>
					<input type="text" title="검색영역" id="sysName" name="sysName" class="input_srch" value="${paramMap.sysName }"/>
					<a href="<c:url value="/repairSystem/searchCurrentSystem.do"/>" onclick="searchForm();return false;" class="btn_srch">검색</a>
				</fieldset>
			</div>
            <div class="table_wrap"><!-- D : table은 div table_wrap 싸고감 -->
                <table summary="시설 품명 리스트" class="table_list">
                    <caption>시설 품명 리스트</caption>
                    <colgroup> <!-- D : col width로 테이블 넓이 조절 -->
                        <col width="15%" />
                        <col width="30%" />
                        <col width="*" />
                        <col width="15%" />
                    </colgroup>
                    <thead>
                        <tr>
                            <th scope="col">번호</th>
                            <th scope="col">품명</th>
                            <th scope="col">장비사양</th>
                            <th scope="col">선택</th>
                        </tr>
                    </thead>
                    <tbody>
                    	<c:forEach var="result" items="${resultList }" varStatus="status">
	                        <tr id="currentSystemList">
	                            <td>${status.count}</td>
	                            <td id="sysName${status.count-1 }">${result.scs_sys_name}</td>
	                            <td class="alL">${result.scs_sys_spec}</td>
	                            <td><a href="#selectCsysName" id="selectCsysName${status.count-1 }" class="btn_tb">선택</a></td>
	                        </tr>
                    	</c:forEach>
                    </tbody>
                </table>
            </div><!--//table_wrap-->
    	</form>
    </div><!--//container_area-->
</div>
</body>
</html>
